import { Module, forwardRef } from '@nestjs/common';
import { MenuEntity } from './menu.entity';
import { TypeOrmModule } from '@nestjs/typeorm';
import { RoleModule } from '../role/role.module';
import { MenuService } from './menu.service';
import { MenuController } from './menu.controller';
const providers = [MenuService];
@Module({
  imports: [TypeOrmModule.forFeature([MenuEntity]), forwardRef(() => RoleModule)],
  controllers: [MenuController],
  providers: [...providers],
  exports: [TypeOrmModule, ...providers]
})
export class MenuModule {}
